package com.zyx.lock.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zyx.lock.pojo.Stock;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author Yaxi.Zhang
 * @since 2022/9/5 21:46
 */
@Mapper
public interface StockMapper extends BaseMapper<Stock> {

    void setStockCount(@Param("stockCode") String stockCode,@Param("deduct") Integer deduct);

    Stock selectStockForUpdate(Long id);

}
